html,
body,
#app {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

body {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: bold;
	padding: 0;
	margin-bottom: 8px;
}
h1 {
	font-size: 24px;
}
h2 {
	font-size: 20px;
}

/* 文字单行省略号 */
.sle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 文字多行省略号 */
.mle {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* 文字多了自動換行 */
.break-word {
	word-break: break-all;
	word-wrap: break-word;
}

/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
	transition: all 0.5s;
}
.fade-transform-enter-from {
	opacity: 0;
	transition: all 0.5s;
	transform: translateX(-20vw);
}
.fade-transform-leave-to {
	opacity: 0;
	transition: all 0.5s;
	transform: translateX(20vw);
}

/* Breadcrumb */
.breadcrumb-enter-active,
.breadcrumb-leave-active {
	transition: all 0.2s ease;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
	opacity: 0;
	transform: translateX(10px);
}
.breadcrumb-leave-active {
	position: absolute;
	z-index: -1;
}

/* scroll bar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
	background-color: var(--el-scrollbar-bg-color);
}
::-webkit-scrollbar-thumb {
	background-color: var(--el-color-primary);
	border-radius: 20px;
	box-shadow: inset 0 0 0 var(--el-color-primary);
}
::-webkit-scrollbar-thumb:hover {
	background-color: var(--el-color-primary);
}
/* nprogress样式 */
#nprogress .bar {
	background: var(--el-color-primary) !important;
}
#nprogress .spinner-icon {
	border-top-color: var(--el-color-primary) !important;
	border-left-color: var(--el-color-primary) !important;
}
#nprogress .peg {
	box-shadow:
		0 0 10px var(--el-color-primary),
		0 0 5px var(--el-color-primary) !important;
}

/* highlight关键字高亮 */
.highlight-words {
	color: var(--el-color-primary-light-1);
}
.highlight-keywords {
	color: var(--el-color-primary);
}
.highlight-keywords {
	&::after {
		content: url('@/assets/images/global/iconHighlight.svg');
		margin-left: 5px;
	}
}

.mobile {
	// 移动端隐藏
	.h5-hidden {
		display: none;
	}
	.h5-w-full {
		width: 100%;
		max-width: 100%;
	}
}
